const nodata = require('../tw-lib-base/no-data/props')
const commonProps = require('../tw-lib-base/chart/common-props')
// const axisProps = require('../tw-lib-base/chart/axis-props')
// const datazoomProps = require('../tw-lib-base/chart/datazoom-props')
// const tooltipProps = require('../tw-lib-base/chart/tooltip-props')

module.exports = {
  ...commonProps,

  // ...axisProps,
  // ...datazoomProps,
  // ...tooltipProps,

  data: {
    type: Array,
    default () {
      return [{
        name: '教学课件',
        value: 37,
        itemStyle: {
          color: '#f77b66'
        }
      }, {
        name: '教学设计',
        value: 44,
        itemStyle: {
          color: '#3edce0',
        }
      }, {
        name: '素材资源',
        value: 32,
        itemStyle: {
          color: '#f94e76'
        }
      }, {
        name: '试卷',
        value: 16,
        itemStyle: {
          color: '#018ef1'
        }
      }, {
        name: '试题',
        value: 23,
        itemStyle: {
          color: '#9e60f9'
        }
      }, {
        name: '微课',
        value: 23,
        itemStyle: {
          color: '#ffb336'
        }
      }, {
        name: '其他',
        value: 23,
        itemStyle: {
          color: '#657df5'
        }
      }]
    },
    name: '图表数据集',
    filedType: 'api'
  },
  legendWth: {
    type: String,
    default: '100',
    name: 'legend整体宽度',
    filedType: 'string'
  },

  ...nodata
}
